{% extends 'html模板/机构队伍-base.html' %}
{% load staticfiles %}

{% block css %}

{% endblock %}

{% block mianbaoxiedaohang %}
    执法单位列表
{% endblock %}

{% block main %}
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title"><span class="icon"> <i class="icon-th"></i> </span>
                    <h5>执法单位列表</h5>
                </div>
                <div class="widget-content nopadding">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th> 序号</th>
                            <th> 单位名称</th>
                            <th> 单位地址</th>
                            <th> 负责人</th>
                            <th> 负责人电话</th>
                            <th> 联系人</th>
                            <th> 联系人电话</th>
                            <th> 编制数</th>
                            <th> 单位性质</th>
                            <th> 车辆数</th>
                            <th> 经费</th>
                        </tr>
                        </thead>
                        <tbody>
                        {% for foo in list %}
                            <tr class="foo">
                                <td>
                                    <div class="mytd0">{{ forloop.counter }}</div>
                                </td>
                                <td>
                                    <div class="mytd3">{{ foo.title }}</div>
                                </td>
                                <td>
                                    <div class="mytd3">{{ foo.address }}</div>
                                </td>
                                <td>
                                    <div class="mytd2">{{ foo.fzr }}</div>
                                </td>
                                <td>
                                    <div class="mytd2">{{ foo.phone1 }}</div>
                                </td>
                                <td>
                                    <div class="mytd2">{{ foo.lxr }}</div>
                                </td>
                                <td>
                                    <div class="mytd2">{{ foo.phone2 }}</div>
                                </td>
                                <td>
                                    <div class="mytd1">{% if foo.bianzhi %}
                                        {{ foo.bianzhi }}
                                    {% endif %}</div>
                                </td>
                                <td>
                                    <div class="mytd4">
                                        {% if foo.dwxz %}
                                            {{ foo.get_dwxz_display }}
                                        {% endif %}
                                    </div>
                                </td>
                                <td>
                                    <div class="mytd1">{% if foo.che %}
                                        {{ foo.che }}
                                    {% endif %}</div>
                                </td>
                                <td>
                                    <div class="">{% if foo.jingfei %}
                                        {{ foo.jingfei }}
                                    {% endif %}</div>
                                </td>
                            </tr>
                        {% endfor %}
                        </tbody>
                    </table>
                    <ul class="pagination pagination-sm pull-right">
                        {{ page_obj.page_str|safe }}
                    </ul>
                </div>
            </div>
        </div>
    </div>
{% endblock %}

{% block js %}
    <script>
        $('.zfjg').addClass('active')
        $('.pagination ').append('<li><a href="/download/jg/"><span class="icon-download-alt"></span></a></li>')

    </script>
{% endblock %}